package models

// 课程教师表
type CourseTeacher struct {
	// 课程Id
	CourseId int `json:"course_id" gorm:"column:course_id;type:int;primary_key;"`
	// 教师Id
	TeacherId int `json:"teacher_id" gorm:"column:teacher_id;type:int;primary_key;"`
}

// 插入一批课程教师数据
func InsertMockCourseTeacher() {
	DB.Model(&CourseTeacher{}).Create([]CourseTeacher{
		{CourseId: 1, TeacherId: 6},
		{CourseId: 2, TeacherId: 7},
	})
}
